package com.db.common.util;


import com.db.pojo.SysUser;
import org.apache.shiro.SecurityUtils;

public class ShiroUtiles {
	public static SysUser getUser() {
		return (SysUser) SecurityUtils.getSubject().getPrincipal();
	}

	public static String getUserName() {
		return getUser().getUsername();
	}
}
